<script>
 
if (document.cookie.indexOf('visited=true') === -1) {
$(window).load(function(){
	var $win = $(window),
		$ad = $('#float_ad').css('opacity', 0).show(),	
		_width = $ad.width(),
		_height = $ad.height(),
		_diffY = 0, _diffX = 0,	
		_moveSpeed = 800;	
 
	$ad.css({
		top: _diffY,
		left: _diffX,
		opacity: 1
	});
 
	$win.bind('scroll resize', function(){
		var $this = $(this);
 
		$ad.stop().animate({
			top: $this.scrollTop() +  _diffY,
			left: $this.scrollLeft() +  _diffX
		}, _moveSpeed);
	}).scroll();	
 
	
	$('#float_ad .close_ad').click(function(){
		
		
		if($('input[name=\'noshow\']').attr('checked') ? 1 : 0){
		var expires = new Date();
		expires.setDate(expires.getDate()+1);
		document.cookie = "visited=true; expires="+expires.toUTCString();
		$ad.hide();
		}
		else{
		$ad.hide();

		}
		
	});
});
}

		
</script>

<div id="float_ad" ><span class="close_ad">X</span>		
			<?php echo $description; ?>
			
			<center>
			<input type="checkbox" name="noshow" value="test"><?php echo $text_noshow?></input>
			</center>
	</div>


